package com.book.shop.model;

import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@Entity
@Table(name = "roles")
public class Roles implements Serializable {
    @NotNull
    @Size(max=50)
    @Id
    @Column(name ="rolename",length = 50)
    private String rolename;

}
